<form action="<?php e_page("article","index");?>" method="get">
    <fieldset>
        <legend></legend>
        <label for="type">文章类别</label>
        <select name="type" id="type">
            <option value="system" <?php if($r['type']=='system') echo 'selected';?>>系统文章</option>
            <option value="news" <?php if($r['type']=='news') echo 'selected';?>>新闻</option>
            <option value="complaint" <?php if($r['type']=='complaint') echo 'selected';?>>问题投诉</option>
        </select>
        <input type="submit" value="搜 索"/><br/><br/>
    </fieldset>
</form>
<table id="dataTable">
    <thead>
    <tr>
        <th>ID</th>
        <th>文章标题</th>
        <th>发布时间</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <?php foreach($r['list'] as $v){ ?>
        <tr>
            <td><?php echo $v['id']?></td>
            <td><?php echo $v['title']?></td>
            <td><?php echo $v['create_time']?></td>
            <td>
                <a href='<?php e_action("modify","id={$v['id']}");?>'>修改</a>
                <?php if($v['type']=='news'){ ?> /
                    <a href='<?php e_action("delete","id={$v['id']}");?>'>删除</a>
                <?php } ?>
            </td>
        </tr>
    <?php }?>
    </tbody>
</table>
<?php echo $r['page']->getPageHtml(); ?>